package com.yj.ccs.abs.web.asset.dto;

import com.yj.ccs.abs.common.enums.RemarkType;
import com.yj.ccs.abs.web.common.entity.Attachment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/24
 * Author     : Unbelievable9
 **/
@Data
public class UpdateRemarkDto {

    @NotNull(message = "备注ID不能为空")
    @ApiModelProperty(value = "备注ID", required = true, example = "1")
    private Long id;

    @NotNull(message = "备注类型不能为空")
    @ApiModelProperty(value = "备注类型<br>1-执行费用<br>2-涉及诉讼<br>3-涉及仲裁<br>4-其他", required = true, example = "EXECUTION")
    private RemarkType type;

    @ApiModelProperty(value = "费用日期", example = "2018-04-01")
    private LocalDate fee_date;

    @ApiModelProperty(value = "费用金额", example = "555000000.00")
    private BigDecimal fee_money;

    @NotNull(message = "备注描述不能为空")
    @ApiModelProperty(value = "备注描述", required = true, example = "我是备注")
    private String detail;

    @NotNull(message = "备注附件不能为空")
    @ApiModelProperty(value = "备注附件", required = true)
    private List<Attachment> files;
}
